mob/proc
	job()
		switch(alert("What job would you like?","Job","Captain","Security","Assistant"))
			if("Captain")
				if(captain == 0)
					usr.job = "Captain"
					beginspawning()
					captain = 1
					return
				if(captain == 1)
					usr << "There is already a captain! Please pick another job!"
					job()
			if("Security")
				if(security == 0)
					usr.job = "Security"
					beginspawning()
					security += 1
					return
				if(security == 1)
					usr.job = "Security"
					beginspawning()
					security += 1
					return
				if(security == 2)
					usr.job = "Security"
					beginspawning()
					security += 1
					return
				if(security == 3)
					usr.job = "Security"
					beginspawning()
					security += 1
					return
				if(security == 4)
					usr.job = "Security"
					beginspawning()
					security += 1
					return
				if(security == 5)
					usr << "There is already five security! Please pick another job!"
					job()
			if("Assistant")
				usr.job = "Assistant"
				beginspawning()
				return


mob
	var
		job = ""


var
	captain = 0
	security = 0